package com.ruoyi.data.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 会员关系对象 data_user_relation
 *
 * @author zzp
 * @date 2022-10-18
 */
public class DataUserRelation extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 会员ID
     */
    @Excel(name = "会员ID")
    private Long userId;

    /**
     * 会员账号
     */
    @Excel(name = "会员账号")
    private String userName;

    /**
     * 会员姓名
     */
    @Excel(name = "会员姓名")
    private String nickName;

    /**
     * 邀请人ID
     */
    @Excel(name = "邀请人ID")
    private Long topUserId;

    /**
     * 邀请人账号
     */
    @Excel(name = "邀请人账号")
    private String topUserName;

    /**
     * 邀请人昵称
     */
    @Excel(name = "邀请人昵称")
    private String topNickName;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setTopUserId(Long topUserId) {
        this.topUserId = topUserId;
    }

    public Long getTopUserId() {
        return topUserId;
    }

    public void setTopUserName(String topUserName) {
        this.topUserName = topUserName;
    }

    public String getTopUserName() {
        return topUserName;
    }

    public void setTopNickName(String topNickName) {
        this.topNickName = topNickName;
    }

    public String getTopNickName() {
        return topNickName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("nickName", getNickName())
                .append("topUserId", getTopUserId())
                .append("topUserName", getTopUserName())
                .append("topNickName", getTopNickName())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .toString();
    }
}
